import type { UploadFile } from "element-plus";
//商品对象结构
export interface Product {
    productId: number;
    name: string;
    price: number;
    stock: number;
    categoryId: number;
    categoryName: string;
    merchantId: number;
    merchantName: string;
    description: string;
    status: string;
    createTime: string;
    img: string;
    imgs: UploadFile[];
    keyword: string;
    pageNum?: number;
    pageSize?: number;
    vlaue: number
}
//订单
export interface order {
    createTime: string;
    orderId: number;
    orderItemList: any;
    addressName: string
    totalAmount: number
    status: number
}

export interface CartItem {
    userAddressId: number;
    productId: number | null;
    quantity: number;
    priceSnapshot: number | null;
    addedAt: string;
    isChosen: number;
    product: Product;
}
export interface User {
    userId: number;
    username: string;
    password: string;
    nickname: string;
    mobile: string;
    email: string;
    avatar: string;
    status: number;
    deptId: number;
    isDeleted: number;
    roleId: number;
    roleName: string;
    gender: number
    createTime: string;
    updateTime: string;
    pageNum?: number;
    pageSize?: number;
}